package com.hyq.eduservice.controller;

import com.hyq.eduservice.entity.Type;

import java.util.HashSet;
import java.util.Set;

/**
 * @author ：hyq
 * @date ：Created in 2021/4/22 10:18
 * @description：
 * @modified By：
 */
public class Test {
    public static void main(String[] args) {
        Set<Type> input1 = new HashSet<>();
        Set<Type> input2 = new HashSet<>();
        Type type1 = new Type("芯片","硬件","高端芯片");
        Type type2 = new Type("芯片","硬件","中端芯片");
        Type type3 = new Type("数据库","软件","数据库");
        Type type4 = new Type("电脑操作系统","操作系统","桌面操作系统");
        Type type5 = new Type("数据库","软件","数据库");
        input1.add(type1);
        input1.add(type2);
        input1.add(type3);
        input1.add(type4);
        input1.add(type5);

        Type type6 = new Type("稀有资源","资源","稀土");
        Type type7 = new Type("数据库","软件","分布式数据库");
        Type type8 = new Type("芯片","硬件","中端芯片");
        Type type9 = new Type("高铁","硬件","高铁");
        Type type10 = new Type("计算机","硬件","高端计算机");
        input2.add(type6);
        input2.add(type7);
        input2.add(type8);
        input2.add(type9);
        input2.add(type10);

        input1.removeAll(input2);
        for(Type t:input1){
            System.out.println(t.getTest1()+","+t.getTest2()+","+t.getTest3());
        }

    }
}
